<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width,initial-scale=1">
               <link rel="stylesheet" href="Bootstrap/css/bootstrap.min.css">
		<script src="Bootstrap/js/jquery-1.11.1.min.js"></script>
		<script src="Bootstrap/js/bootstrap.min.js"></script>
        <script type="text/javascript">

        </script>
        <style type="text/css">
        body,html{
            font-family: "微软雅黑";
            color:gray;
        }
        .bottom-menu{
       border-top:1px solid #D3D3D3;
        margin: 0 auto;
        position: fixed;
        bottom: 0;
        text-align: center;
        background:#33CCCC;
    }
    
    .bottom-menu td{
        padding-top: 6px;
        font-size: 13px;
        height: 50px;
        width: 200px;
    }
   .bottom-menu a{
    color:#ffffff;
    }.my-center{
    text-align: center;
    }
        #Info{
            width: 99%;
            height:130px;
            border-radius: 1px;
            border-bottom: 1px solid #cccccc;
            margin: 0 auto;
        }
        .left_img{
            width: 40%;
            height:130px;
            float: left;
            padding: 10px;
        }
        .left_img img{
            width: 100%;
            height: 110px;

        }
        .right_content{
            width: 100%;
            height:130px;

        }
        .ss{
                 font-size: 14px;
                 padding:5px;
                 position:absolute;
                 color: black;
             }
        .titl_1{
            width: 100%;
            height:80px;
        }
        .titl_2{
            width: 100%;
            margin-top: 10px;
            font-size: 12px;
            margin-top: 22px;
        }
        </style>
    </head>
    <body>
    
    <script>
        $(function () {
            var user = JSON.parse(localStorage.user);
            if(user == null) {
                location.href = "login.html";
            }
            var uid = user.id;
            $.ajax({
                url:"http://localhost:8080/zp/shouCangDate?id="+uid,
                type:"post",
                success:function (data) {
                    for(var i = 0; i < data.length; ++i){
                        var d = data[i];
                        var html = "";
                        var img = "http://localhost:8080"+d.file;
                        var url = "content.html?"+data[i].id;;
                        html += " <a href="+url+"><div id='Info'> <div class='left_img'>";
                        html += "  <img alt='' src="+img+" /> </div>";
                        html += " <div class='right_content'> <div class='titl_1'>";
                        html += "<span class='ss'>"+d.title+"<br>";
                        html += "<span style='font-size: 10px; color: gray;'>"+d.release1+"</span></span></div>";
                        html += "  <div class='titl_2'><span class='glyphicon glyphicon-eye-open'></span> "+d.clickNum+"<span style='float: right;s'>"+d.starttime+"&nbsp;&nbsp;&nbsp;";
                        html += "</span></div> </div></div> </a>";
                        $("#cot").append(html);
                    }
                }
            })
        })
    </script>
        <!--列表组-->

            <a class="list-group-item active my-center" style="background:#33CCCC;border: 0"> 我的收藏</a>
        <div style="border: 1px;border-color: #2B2B2B ;margin-top: 5px">
            <!--按钮组-->

            <div class="content" id="cot">


            </div>
        </div>

           <!--底部导航菜单开始-->
	<div class="bottom-menu">
		<table>
			<tr>
				<td><a href="index.html" ><span class="glyphicon glyphicon-home"></span>
						<br>首页</a></td>
				<td><a href="release.html"><span class="glyphicon glyphicon-pencil"></span><br>我要发布</a></td>
				<td><a href="my_collect.html" style="color:#66ffff;"><span class="glyphicon glyphicon-star"></span><br>我的收藏</a></td>
				<td><a href="mypage.html"><span class="glyphicon glyphicon-th-list"></span><br>我的</a></td>
			</tr>
		</table>
	</div>
	<!--底部导航菜单结束-->
    </body>
</html>